package lzzy.net.chaper04_jpa;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class Chaper04JpaApplicationTests {

    @Autowired
    CommentRepository commentRepository;

    @Autowired
    CommentService commentService;
    @Test
    void contextLoads() {
        System.out.println(commentService.addComment("23124","cx",4));
    }

    @Test
    void contexatLoads() {
        System.out.println(commentRepository.findByAuthorContains("asd"));
    }


}
